package com.javacv.plus.extensions.audio.config;

import com.javacv.plus.core.config.ProcessorConfig;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 音频处理配置
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AudioConfig extends ProcessorConfig {
    /**
     * 采样率
     */
    private int sampleRate = 44100;

    /**
     * 声道数
     */
    private int channels = 2;

    /**
     * 比特率
     */
    private int bitRate = 128000;

    /**
     * 音频格式
     */
    private String format = "mp3";

    /**
     * 是否保持原始采样率
     */
    private boolean keepOriginalSampleRate = false;

    /**
     * 是否保持原始声道数
     */
    private boolean keepOriginalChannels = false;

    /**
     * 是否保持原始比特率
     */
    private boolean keepOriginalBitRate = false;

    /**
     * 是否保持原始格式
     */
    private boolean keepOriginalFormat = false;
} 